@layout("/common/_container.html",{plugins:["ztree"],js:["/assets/banner/banner.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">Banner列表</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <select name="status" lay-filter="status" id="status">
                                    <option value="">全部</option>
                                    <option value="1">自制栏目</option>
                                    <option value="2">链接栏目</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                             	@if(shiro.hasPermission("/modular/banner/add")){
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon"></i>新增
                                </button>
                                 @}
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="baseTable" lay-filter="baseTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/html" id="tableBar">
    @if(shiro.hasPermission("/modular/banner/edit")){
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">编辑</a>
    @}
    @if(shiro.hasPermission("/modular/banner/delete")){
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
    @}
</script>
@}